/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package guzik.lukasz.SnpLoginEngine;

import javax.swing.Action;
import org.openide.modules.ModuleInstall;

/**
 * Manages a module's lifecycle. Remember that an installer is optional and
 * often not needed at all.
 */
public class Installer extends ModuleInstall
{
    @Override
    public void restored()
    {
	LoginAction.getInstance().setEnabled(false);
    }
    @Override
    public void close()
    {
	super.close();
	LoginEngineImpl.getInstance().logout();
    }
}
